import { request } from '@/utils/request';

const Api = {
  root: '/user-center/data-workbench/alumni',
};

export function getPage(params: any) {
  return request.get({
    url: `${Api.root}/page`,
    params,
  });
}

export function get(id: string) {
  return request.get({
    url: `${Api.root}/get`,
    params: { id },
  });
}

export function add(data: any) {
  return request.post({
    url: `${Api.root}/add`,
    data,
  });
}

export function update(data: any) {
  return request.put({
    url: `${Api.root}/update`,
    data,
  });
}

export function del(id: string | number) {
  return request.delete({
    url: `${Api.root}/delete`,
    params: { id },
  });
} 